package
{
	import astar.*;
	import flash.display.*;
	import flash.events.*;
	
	public class Main extends Sprite
	{
		
		public function Main() : void
		{
			if (stage)
				init();
			else
				addEventListener(Event.ADDED_TO_STAGE, init);
		}
		
		private function init(e : Event = null) : void
		{
			removeEventListener(Event.ADDED_TO_STAGE, init);
			// entry point
			
			m_grid = new Grid(50, 30);
			m_grid.setStartNode(1, 3);
			m_grid.setEndNode(2, 6);
			
			m_gridView = new GridView(m_grid);
			m_gridView.x = 20;
			m_gridView.y = 20;
			this.addChild(m_gridView);
		}
		
		private var m_grid : Grid = null;
		private var m_gridView : GridView = null;
	}

}

































///////////////////////////////////////////////////////////////////////////////////////////////////
// end file


